/*****************************************************************************
 * Pause Quafé - An Eve-Online™ character assistance application             *
 * Copyright © 2009  diabeteman & Kios Askoner                               *
 *                                                                           *
 * This file is part of Pause Quafé.                                         *
 *                                                                           *
 * Pause Quafé is free software: you can redistribute it and/or modify       *
 * it under the terms of the GNU General Public License as published by      *
 * the Free Software Foundation, either version 3 of the License, or         *
 * (at your option) any later version.                                       *
 *                                                                           *
 * Pause Quafé is distributed in the hope that it will be useful,            *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
 * GNU General Public License for more details.                              *
 *                                                                           *
 * You should have received a copy of the GNU General Public License         *
 * along with Pause Quafé.  If not, see http://www.gnu.org/licenses/.        *
 *****************************************************************************/

package org.pausequafe.data.misc;

public class ServerStatus {
    private boolean onLine;
    private boolean unknown;
    private int playerCount;

    public ServerStatus() {
        unknown = true;
        onLine = false;
        playerCount = 0;
    }

    public ServerStatus(boolean isOnLine, int playerCount) {
        this.unknown = false;
        this.onLine = isOnLine;
        this.playerCount = playerCount;
    }

    public boolean isOnLine() {
        return onLine;
    }

    public int getPlayerCount() {
        return playerCount;
    }

    public void setOnLine(boolean isOnLine) {
        this.onLine = isOnLine;
    }

    public void setPlayerCount(int playerCount) {
        this.playerCount = playerCount;
    }

    public void setUnknown(boolean isUnknown) {
        this.unknown = isUnknown;
    }

    public boolean isUnknown() {
        return unknown;
    }

}
